import Handler from "./Handler";

export default class MessageDelegate implements Handler {

    private handler: Handler = null;

    constructor(handler: Handler) {
        this.handler = handler;
    }

    public handleMessage(message: string, args: any[]): boolean {
        return this.handler.handleMessage(message, args);
    }
}
